import { axios as request  } from '@/utils/request'
import qs from 'qs'

export function getList({params}) {
  return request({
    url: 'api/app/order/wait-assign?' + qs.stringify(params, {indices: false, encode: false}),
    method: 'get'
  })
}

export function cancel(data) {
  return request({
    url: '',
    method: 'post',
    data
  })
}

export function getSellerList() {
  return request({
    url: 'api/app/order/assign-user?',
    method: 'get'
  })
}

export function assignSeller({data}) {
  return request({
    url: 'api/app/order/assign',
    method: 'post',
    data
  })
}

export function getAssignRecordList({params}) {
  return request({
    url: 'api/app/order/assign?' + qs.stringify(params, {indices: false, encode: false}),
    method: 'get'
  })
}

